<!-- 
<div class="box">
  <div class="box-heading"><?php echo $heading_title; ?></div>
  <div class="box-content">
    <div class="box-category">
      <ul>
        <?php foreach ($categories as $category) { ?>
        <li>
          <?php if ($category['category_id'] == $category_id) { ?>
          <a href="<?php echo $category['href']; ?>" class="active"><?php echo $category['name']; ?></a>
          <?php } else { ?>
          <a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
          <?php } ?>
          <?php if ($category['children']) { ?>
          <ul>
            <?php foreach ($category['children'] as $child) { ?>
            <li>
              <?php if ($child['category_id'] == $child_id) { ?>
              <a href="<?php echo $child['href']; ?>" class="active"> - <?php echo $child['name']; ?></a>
              <?php } else { ?>
              <a href="<?php echo $child['href']; ?>"> - <?php echo $child['name']; ?></a>
              <?php } ?>
            </li>
            <?php } ?>
          </ul>
          <?php } ?>
        </li>
        <?php } ?>
      </ul>
    </div>
  </div>
</div> -->

<div class="box_center clearfix">
						<div class="title mar10">
							<a style="<?php echo 'color:'.$color;?>" href="#">Danh mục sản phẩm</a>
						</div>
                        <div class="content">
                        <?php $index=0; foreach ($categories as $category): ?>
                        	<ul class="ul_sp_<?php echo $index+1?> ul_sp">
                            	<li><h2><a style="<?php echo 'color:'.$category['color']?>" href="<?php echo $category['href']; ?>" class="color_<?php echo $index+1?>"><?php echo $category['name']; ?></a></h2></li>
                            	<?php if ($category['children']):?>
                            	<?php foreach ($category['children'] as $child): ?>
                                	<li><h3><a href="<?php echo $child['href']; ?>"><?php echo $child['name']; ?></a></h3></li>
                                <?php endforeach;?>                                
                                <?php endif;?>
                            </ul>
                        <?php $index++;endforeach;?>                              
                        </div>
					</div>
